﻿//import som = require("SalesOrderModels");
//import sov = require("SalesOrderViews");
//import cms = som.CustomerModels;
//import cvs = sov.CustomerViews;
//import bb = Backbone;

//$(document).ready(() => {
//    var cv = new cvs.CustomersSelectView();
//    cv.collection = new cms.CustomerShortList();
//    cv.$el = $("#Customers"); //where the element to be inserted

//    cv.collection.fetch({
//        success: () => cv.render(),
//        error: () => console.log()
//    });
//});

import sor = require("SalesOrderRouters");
import bb = Backbone;

$(() => {
    var rtr = new sor.CustomerRouters.CustomerSalesOrderRouter();
    bb.history.start();
    rtr.navigate("startState", { trigger: true });
});